﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ActivityInfo.aspx.cs" Inherits="SponsorshipWeb.ActivityInfo" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <title>宾果高校</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="../css/style.css">
    <link rel="stylesheet" href="../css/sweetalert.min.css" />
    <script src="../js/jquery-1.12.2.min.js"></script>
    <script src="../js/validator.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="../js/login.js"></script>
    <script src="../js/sweetalert.min.js"></script>
    <script src="../js/bootstrap-datetimepicker.js"></script>
    <script src="../js/bootstrap-datetimepicker.zh-CN.js"></script>
</head>
<body>
    <div id="searchPage"></div>
    <div class="main">
        <div class="wrap">
            <div class="form-wrap">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <form id="formValidate" runat="server">
                            <p>第一部分：企业赞助书（请注意当选择了企业赞助书时，第二部分不需要填写，平台将把所选择的企业赞助书发送给社团）</p>
                            <div class="form-group">
                                <asp:DropDownList runat="server" class="form-control" ID="ddlBook">
                                    <asp:ListItem Selected="True">不选择企业赞助书</asp:ListItem>
                                </asp:DropDownList>
                            </div>
                            <hr>
                            <p>第二部分：企业方案（请注意当没有选择企业赞助书时，第二部分需要填写，并发送给社团）</p>
                            <div class="form-group">
                                <asp:TextBox runat="server" ID="txtName" data-error="请填写方案信息" required class="form-control" placeholder="方案名称"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label for="">活动时间：</label>
                                <asp:TextBox runat="server" ID="txtStartTime" data-error="请填写时间" required Style="display: inline-block; width: 110px;" class="form-control datepick"></asp:TextBox><span> -</span>
                                <asp:TextBox runat="server" ID="txtEndTime" data-error="请填写时间" required Style="display: inline-block; width: 110px;" class="form-control datepick"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label for="">企业提供赞助金额：</label>
                                <asp:TextBox runat="server" ID="txtMoney" data-error="请填写赞助提供金额" required class="form-control" placeholder="赞助提供金额"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label for="">活动紧急联系人和电话：</label>
                                <asp:TextBox runat="server" ID="txtUserName" class="form-control" data-error="活动紧急联系人和电话" required placeholder="活动紧急联系人和电话"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <asp:HyperLink runat="server" ID="hlBook" Target="_blank"></asp:HyperLink>
                                <br />
                                <label for="">上传方案：</label>
                                <asp:FileUpload ID="fuBook" class="form-control" data-error="请选择上传文件" required runat="server" />
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <label for="">方案要求：</label>
                                <asp:TextBox runat="server" TextMode="MultiLine" data-error="请填写方案要求" required ID="txtRemark" Rows="4" class="form-control"></asp:TextBox>
                                <div class="help-block with-errors"></div>
                            </div>
                            <div class="form-group">
                                <asp:TextBox runat="server" placeholder="请填写代理管口令，如果没有请忽略" ID="txtAgent" class="form-control"></asp:TextBox>
                            </div>
                            <hr>
                            <div class="form-group text-center">
                                <asp:Button runat="server" ID="btnNext" OnClick="btnNext_Click" class="btn btn-default" OnClientClick="return Go()" Text="提交" />
                                <asp:HiddenField runat="server" ID="hfCompanyID" />
                                <asp:HiddenField runat="server" ID="hfMode" />
                                <asp:HiddenField runat="server" ID="hfUserID" />
                                <asp:HiddenField runat="server" ID="hfProjectID" />
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
<script>

    $("#searchPage").load("header.html", function () {
        SetCss("Act");
    });

    $(function () {
        $('.datepick').datetimepicker({
            format: 'yyyy-mm-dd',
            language: 'zh-CN',
            minView: 2
        });
    });

    function Go() {
        if (!common.validateForm())
            return false;
    }
</script>
